<%= render_message do %>
  <p><%= Alchemy.t(:choose_element_as_target) %></p>
<% end %>
<%= form_tag '' do %>
  <%= select_tag "element_from_page_#{@page_id}_to_link",
    options_for_select(
      @elements.collect { |m| [m.display_name_with_preview_text.html_safe, "##{m.dom_id}"] }
    ),
    prompt: Alchemy.t(:choose_element_to_link),
    class: 'elements_from_page_selector alchemy_selectbox',
    autofocus: true
  %>
  <div class="submit">
    <%= button_tag Alchemy.t(:apply) %>
  </div>
<% end %>
